#ifndef _TaskBoss_h_
#define _TaskBoss_h_

#include "Global.h"
#include "BossIcon.h"
#include "EquipIcon.h"




class TaskBoss
	: public cocos2d::CCNode
	, public cocos2d::extension::CCBMemberVariableAssigner
	, public cocos2d::extension::CCBSelectorResolver
	, public cocos2d::extension::CCNodeLoaderListener
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(TaskBoss, create);
	static TaskBoss* create(CCObject* pOwer);
	TaskBoss(void);
	~TaskBoss(void);

	virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
	virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
	virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, cocos2d::CCString * pMemberVariableName, cocos2d::CCNode * pNode);
	virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader);

	bool init();
	void refresh();
private:
	BossIcon* mBossIcon;
	CCLabelTTF* mName;
	CCLabelTTF* mDesc;
	CCLabelTTF* mExp;
	CCLabelTTF* mCoin;
	CCLabelTTF* mEnergy;
	CCLabelTTF* mItemName;
	EquipIcon* mEquipIcon;

	void onDoItBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
};

#endif